package com.rui1024.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtil {

    public static String getValue(String key) throws IOException {
        InputStream in = PropertiesUtil.class.getClassLoader().getResourceAsStream("personal.properties");
        Properties properties = new Properties();
        properties.load(in);
        return properties.getProperty(key);
    }
}
